Vulkan_Example # How to run Vulkan-Tools(cube/VulkanInfo)on macOS? ## To check if you platform support Vulkan 1. Download latest VulkanSDK for macOS from https://vulkan.lunarg.com/sdk/home#mac 2. Install 3. Download VulkanTools from https://github.com/LunarG/VulkanTools 4. git clone --recurse-submodules git@github.com:LunarG/VulkanTools.git cd VulkanTools mkdir build ./update_external_sources.sh cd build ../scripts/update_deps.py cmake -C helper.cmake .. cmake --build . --parallel

  1. Download Vulkan-Tools from https://github.com/KhronosGroup/Vulkan-Tools

  2. error happened, running .sh errors is because you need set environment in ./bash_profile

  3. cmake error happened, need set some C++ compile environment in ./zshrc

  4. run ./cube to validate your vulkan environment

How to run Excellent Vulkan Examples from git@github.com:SaschaWillems/Vulkan.git:

  1. git clone

  2. git submodule init

  3. git submodule update

  4. python download_assets.py

  5. git clone git@github.com:KhronosGroup/MoltenVK.git

  6. cd MoltenVK

  7. ./fetchDependencies --macos

  8. make macos

  9. cd xcode

  10. prepare to copy MoltenVK which contained dylib to vulkan examples

  11. cd macos

  12. rm MoltenVK

  13. ln -s /Users/linaliu/code/Sascha/MoltenVK/MoltenVK

  14. open xcode project, press run

  15. Amazing demo come out! ![This is my png](https://github.com/Lina-Liuna/Vulkan/raw/main/examples_results_screenshot/Elegant%20deer-MVK_tessellation.jpg) ![This is my png](https://github.com/Lina-Liuna/Vulkan/raw/main/examples_results_screenshot/fantasy_mountain_terraintessellation.jpg) # How to run Vulkan-CTS on macOS? # run Vulkan Comformance Test Suite to validate the application new features.

  16. git clone git@github.com:KhronosGroup/VK-GL-CTS.git

  17. python3 external/fetch_sources.py to download sources for zlib, libpng, jsoncpp, glslang, vulkan-docs, spirv-headers, and spirv-tools.

  18. python3 -m pip install lxml to install lxml

  19. mkdir build

  20. cd build

  21. cmake .. -DCMAKE_BUILD_TYPE=Debug -DDEQP_TARGET=osx -DCMAKE_C_FLAGS=-m64 -DCMAKE_CXX_FLAGS=-m64

  22. make -j4, why not just make -j, because you compute may godie!!

  23. build done!

  24. Run automatically: python3 /Users/linaliu/code/Sascha/VK-GL-CTS/external/vulkancts/scripts/build_mustpass.py

  25. cd /Users/linaliu/code/Sascha/VK-GL-CTS/

  26. cd /Users/linaliu/code/Sascha/VK-GL-CTS/build/external/vulkancts/modules/vulkan/

  27. Run single Vulkan-CTS test case: ./deqp-vk --deqp-case=dEQP-VK.info.device ![This is my png](https://github.com/Lina-Liuna/Vulkan/raw/main/examples_results_screenshot/Vulkan-CTS-100_build.jpg) ![This is my png](https://github.com/Lina-Liuna/Vulkan/raw/main/examples_results_screenshot/Run_SingleTestCase_VulkanCTS.jpg)